Quaternary ammonium hydroxides as mercaptan scavengers

ABSTRACT

A method for scavenging mercaptans in a hydrocarbon fluid is disclosed. According to the method, an effective mercaptan-scavenging amount of an aqueous scavenging composition is added to the fluid. The composition comprises a quaternary ammonium hydroxide of the formula R 1  R 2  R 3  R 4  NOH. R 1  and R 2  are, independently, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms. R 3  is an alkyl group of from two to about eighteen carbon atoms, an aryl group of from two to about eighteen carbon atoms or an alkylaryl group of from four to about eighteen carbon atoms. R 2  and R 3  may be joined to form a heterocyclic ring including the N and optionally an oxygen atom. R 4  is --(CH 2  CH 2  O) n  H, wherein n is an integer from one to about eighteen, or --CHR 5  CHR 6  Y, wherein R 5  and R 6  are, independently, hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms. Y is a non-acidic group. Related compositions and methods are also disclosed.

This application is a division of 08/931675 filed Sep. 16, 1997, now U.S. Pat. No. 5,840,177, which is a continuation of 08/206,137 filed Mar. 3, 1994, abandoned.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to the scavenging of mercaptans in hydrocarbon fluids and more particularly to the use of quaternary ammonium hydroxides as mercaptan scavengers.

2. Description of Prior Art

Hydrocarbon fluids, such as crude oil, crude oil emulsions, oilfield condensate, petroleum residua and even refined fuels often contain a variety of mercaptans, including mercaptans of relatively low molecular weight. Because of the volatility of mercaptans of relatively low molecular weight (for example, methyl mercaptan, CH₃ SH, ethyl mercaptan, CH₃ CH₂ SH and propyl mercaptan, CH₃ CH₂ CH₂ SH), they tend to evolve into vapor spaces, where their offensive odors create problems in and around storage areas and throughout pipelines and shipping systems used for transporting the hydrocarbon.

Various additives have been employed in efforts to alleviate these problems. For example, choline or choline hydroxide has been found to alleviate hydrogen sulfide evolution and to scavenge mercaptans. See, for example, U.S. Pat. Nos. 4,594,147 to Roof et al., 4,867,865 to Roof and 5,183,560 to Roof et al. However, choline and choline hydroxide are not well suited for many uses and media, such as in crude oil. Although choline and choline hydroxide might scavenge mercaptans in such media, they also form a volatile and malodorous by-product with the sulfur compounds indigenous to such media. Accordingly, the use of choline and choline hydroxide to control odors associated with light weight mercaptans is self-defeating in media such as crude oil. Thus, the cited patents to Roof and Roof et al. fail to address this problem and instead describe the use of choline or choline hydroxide in the more refined fuel oils.

European application 0 538 819 A3 to Roof et al. describes the use of oil-soluble quaternary ammonium compounds of the formula ##STR1## to scavenge various sulfur compounds, including mercaptans, from certain oils, especially high boiling, heavy residual fuels. These compounds, prepared under anhydrous conditions, are what are described herein as "internal ions"; i.e., the positive charge on the nitrogen and the negative charge on the oxygen result in overall electrically neutral compounds without the presence of counter ions such as halides. The European application stresses the significance of the oil solubility of these compounds, noting that they are more oil soluble than choline base and so disperse through the oil being treated more thoroughly to decrease the concentration of undesirable sulfur compounds more effectively. Nevertheless, the compositions of the European application suffer from certain disadvantages. For example, compositions that are produced in higher yields, yet still at low cost, and that reduce mercaptan concentrations more effectively are still desired.

Accordingly, despite the reports of these techniques, industry is still searching for other compositions and methods for scavenging low molecular weight mercaptans more effectively and more efficiently.

SUMMARY OF THE INVENTION

The present invention, therefore, is directed to a novel method for scavenging mercaptans in a hydrocarbon fluid. According to the method, an effective mercaptan-scavenging amount of an aqueous scavenging composition comprising a quaternary ammonium hydroxide is added to the fluid. The quaternary ammonium hydroxide may be represented by the formula R¹ R² R³ R⁴ N⁺ OH⁻. R¹ and R² are, independently, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms. R³ is an alkyl group of from two to about eighteen carbon atoms, an aryl group of from two to about eighteen carbon atoms or an alkylaryl groups of from seven to about eighteen carbon atoms. R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom. R⁴ corresponds to the formula --(CH₂ CH₂ O)_(n) H, wherein n is an integer from one to about three or more, or the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ are, independently, hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms, and Y is a non-acidic group corresponding to the formula --OH, --SR⁷ or --NR⁷ R⁸, wherein R⁷ and R⁸ are, independently, hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms.

The present invention also is directed to a novel method for preparation of a quaternary ammonium hydroxide. According to the method, a tertiary amine is reacted with ethylene oxide or propylene oxide in the presence of water. The tertiary amine corresponds to the formula R¹ R² R³ N, wherein R¹, R² and R³ are defined as in the preceding paragraph and R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom. The method produces a quaternary ammonium hydroxide of the formula R¹ R² R³ R⁴ N⁺ OH⁻, wherein R¹, R² and R³ are as defined above and R⁴ is ##STR2## wherein m is 1, 2 or 3.

Among the several advantages of this invention, may be noted the provision of a method for scavenging mercaptans more effectively and efficiently than in conventional methods; the provision of such method that scavenges selectively for light weight mercaptans versus heavier weight mercaptans; the provision of such method that does not tend to generate new malodorous compositions; and the provision of a method for making a scavenging composition useful in such method.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

In accordance with the present invention, it has been discovered that certain quaternary ammonium hydroxides are surprisingly effective mercaptan scavengers that scavenge low weight mercaptans selectively in preference to higher weight mercaptans. The efficacy of the hydroxides is especially surprising in view of the findings that the hydroxides are significantly more effective scavengers than compounds differing only in the counter ion (i.e., it is other than hydroxide), and that in preferred cases the hydroxides are even more effective mercaptan scavengers than the corresponding internal ions (i.e., R₃ N⁺ R'O⁻ where R₃ N⁺ R'OH OH⁻ is the preferred hydroxide).

The selectivity of the hydroxides reduces the waste that would otherwise be encountered in scavenging higher weight mercaptans unnecessarily, and so permits scavenging of the less desirable mercaptans with relatively small amounts of the hydroxides. And, even though the noted European application stresses the importance of the oil-solubility of its compounds to their efficacy, the superior efficacy of the hydroxides in scavenging mercaptans in hydrocarbons has been found even though the hydroxides would be expected to be significantly less oil-soluble than their corresponding internal ions.

Moreover, it has been found that introducing oxygen such as by sparging the treated fluid with air increases the scavenging activity dramatically.

The quaternary ammonium hydroxide may be represented by the formula R¹ R² R³ R⁴ N⁺ OH⁻. R¹ and R² are, independently, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms. R³ is an alkyl group of from two to about eighteen carbon atoms, an aryl group of from two to about eighteen carbon atoms or an alkylaryl groups of from seven to about eighteen carbon atoms. R⁴ corresponds to the formula --(CH₂ CH₂ O)_(n) H, wherein n is an integer from one to about three or more, the formula ##STR3## wherein m and n are integers from zero to about eighteen (independently selected except that m+n is at most about eighteen), or the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ are, independently, hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms, and Y is a non-acidic group corresponding to the formula --OH, --SR⁷ or --NR⁷ R⁸, wherein R⁷ and R⁸ are, independently, hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms or alkylaryl groups of from seven to about eighteen carbon atoms. Preferably, R⁴ is --(CH₂ CH₂ O)_(n) H or --CHR⁵ CHR⁶ Y, wherein n, R⁵, R⁶ and Y are defined as above.

In choline base, each of R¹, R² and R³ is methyl. It now has been found that if one of R¹, R², and R³ is longer than methyl, scavenging may be carried out even in crude oil without the volatile, malodorous scavenging by-products trimethylamine generated with use of the choline base. Accordingly, R³ has been designated as the radical having at least two carbon atoms. In preferred forms, R¹ and R² are alkyl groups of eighteen or fewer carbon atoms and, more preferably, lower alkyl groups of six carbons or fewer, especially three carbons or fewer and, optimally, methyl groups. Most desirably, R³ is a fatty group, such as from about eight to about eighteen carbon atoms, especially about ten to about fourteen carbons atoms, such as a coco- group. However, alternatively, R³ may be a benzyl group or substituted aryl groups, for example, alkylbenzyl groups such as methyl benzyl, or, less desirably, even may be an alkyl group of at least about two carbon atoms. In other, less preferred, embodiments, R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom. In the latter case, a morpholine may be formed. Such ring products have been found to be less effective than the other products and more difficult to prepare by oxyalkylation of a tertiary amine.

R⁴, as noted, corresponds to the formula --(CH₂ CH₂ O)_(n) H, wherein n is an integer from one to about eighteen, the formula ##STR4## wherein m and n are integers from zero to about eighteen (independently selected except that m+n is at most about eighteen), or the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ and Y are defined as above. Inclusion of such R⁴ groups in the quaternary compound have been found to increase the performance of the compound as a mercaptan scavenger significantly over that of tetra-alkyl quaternary compounds. In the preferred embodiment, R⁴ corresponds to the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ are hydrogen or lower alkyls of fewer than about six carbon atoms, especially hydrogen, and Y is --OH.

However, when the quaternary compound is prepared by reacting a tertiary amine with an alkylene oxide to form a quaternary compound wherein R⁴ is --CH₂ CH₂ OH, quaternary compounds are also formed wherein R₄ is the ether or polyether group --(CH₂ CH₂ O)_(n) H. Thus, a composition containing quaternary compounds wherein R⁴ is --CH₂ CH₂ OH often also contains quaternary compounds wherein R₄ is the ether or polyether group --(CH₂ CH₂ O)_(n) H. Generally, however, if the quaternary compound is prepared by oxyalkylating a tertiary amine, the amine is reacted with the alkylene oxide in a molar ratio of about 1:1 so that, while some amine remains unreacted thereby leaving some alkylene oxide available for polyether formation, typically the ether or polyether chains that do form are short; n being mostly one, two or three.

The quaternary ammonium hydroxides of this invention may be prepared by a variety of known techniques that will be readily apparent to those of ordinary skill in the art. For example, the quaternary ammonium hydroxides may be prepared by ion exchange techniques from readily available quaternary ammonium halides, such as quaternary ammonium chlorides. By such techniques, the quaternary ammonium halides may be passed through an ion exchange column for exposure to an ion exchange resin, exchanging the halide ion for OH⁻ ions (or Y⁻ ions where Y is as defined above and does not correspond to OH) from the column. Thus, according to this method for producing the hydroxide, the halide R¹ R² R³ R⁴ N⁺ Z⁻, wherein R¹, R², R³ and R⁴ are as defined in the broader definition above and Z⁻ is a halide, is brought into contact with an ion exchange resin bearing hydroxide ions to form R¹ R² R³ R⁴ N⁺ OH⁻.

Alternatively, the quaternary ammonium hydroxides of this invention may be prepared by oxyalkylation of tertiary amines in the presence of water. Techniques for oxyalkylation of tertiary amines have been described, for example, in the European patent application noted above, but the European application requires the reaction to be carried out under anhydrous conditions. Anhydrous conditions were necessary for the formation of the internal ions of the European application. Now, however, the benefits of the hydroxides have been discovered. Such compounds are formed when the oxyalkylation is carried out in the presence of water. And, surprisingly, it has been discovered that the reaction carried out in the presence of water results in yields of the quaternary ammonium hydroxide product that are significantly higher than the yields of quaternary ammonium internal ion resulting from the reaction carried out under anhydrous conditions. Moreover, carrying out the reaction in the presence of water allows the use of less oxide per amine than called for in the nonaqueous reaction of the European application of Roof et al. (that is, a 1:1 molar ratio may be employed as opposed to bubbling the oxide through the amine as called for by Roof et al.). In addition, the aqueous reaction proceeds much faster than does the nonaqueous reaction and so the quaternary product may be formed in much less time. Where Y of R⁴ is a non-acidic group other than OH⁻, a similar reaction may be carried out with, for example, an alkylene sulfide or alkyleneimine instead of an alkylene oxide.

Thus, the subject inventor has discovered that if the oxyalkylation reaction is carried out in the presence of water, the resulting quaternary ammonium hydroxides not only are more effective mercaptan scavengers in certain preferred cases than are the internal ions that would have been produced had the reaction taken place in the absence of water, but also are produced in higher yields than the internal ions would have been.

Accordingly, in more detail, where R⁴ of the quaternary ammonium hydroxide R¹ R² R³ R⁴ N⁺ OH⁻ is hydroxyethyl or hydroxypropyl, or if R⁴ is an ether or polyether group as described above, the hydroxide may be prepared by reacting a tertiary amine such as of the form R¹ R² R³ N with an alkylene oxide, in the presence of water. The alkylene oxide may be propylene oxide, but ethylene oxide is preferred. In the less preferred cases where the quaternary ammonium compound R¹ R² R³ R⁴ N⁴ is not a hydroxide, but R⁴ corresponds to the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ are defined above and Y is a non-acidic group corresponding to the formula --SR⁷ or --NR⁷ R⁸, an alkylene sulfide or alkyleneimine, respectively, may be substituted for the alkylene oxide and otherwise the same procedures may be followed.

R¹, R² and R³ of the tertiary amine are as defined above. Preferably, however, R¹ is methyl and more preferably R² is also methyl. Although R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom, such as to form a morpholine derivative, such compositions have been found to be more difficult to oxyalkylate without the offset of producing more potent scavengers and so in the most desirable configurations, R² and R³ are not joined. Preferably, R³ is a fatty group of from about six to about twelve carbon atoms.

The reaction is carried out in an aqueous solvent. For example, the solvent may comprise about 50% by weight to about 95%, by weight alcohol such as isopropanol or, preferably, methanol, and about 5% by weight to about 50% by weight water. A typical solvent formulation, therefore, might comprise, by weight, two parts solvent to one part water.

The active ingredients may make up about 70% by weight of the reaction mixture (the remaining 30% being solvent). In a preferred method of preparation, the tertiary amine is stirred in the solvent and the system is pressurized with alkylene oxide added in a molar ratio of about 1:1 to the amine. Generally, the molar ratio is in the range of from about 1:1 to about 1.5:1 alkylene oxide to amine. The reaction is carried out at a temperature typically under about 70° C., preferably about 40° C. to about 50° C., with continuous stirring and its completion is signalled by a drop in pressure to about atmospheric. The resulting mixture, aside from unreacted solvent, is a combination of the quaternary compounds wherein the R⁴ 's are of the formulae --CH₂ CH₂ OH and --(CH₂ CH₂ O)_(n) H, wherein n is as defined above, unreacted amine, and glycols formed from reaction of the alkylene oxide and water. Other quaternary ammonium hydroxides wherein R⁴ corresponds to the formula ##STR5## or the formula --CHR⁵ CHR⁶ Y wherein m, n, R⁵, R⁶ and Y are as defined above, may be prepared by similar techniques that will be readily apparent to those of ordinary skill in the art.

The resulting quaternary ammonium hydroxide may be added to the medium to be treated by standard techniques, such as by injection or simple pouring and it may be dispersed throughout the fluid by stirring or other agitation. The additive is incorporated at a level sufficient to scavenge the mercaptans to a desired degree and will depend on the mercaptan content of the medium and the corresponding stoichiometry. However, typical additive levels may be on the order of about 100 to about 10,000, preferably about 500 to about 5,000, ppm based on the weight of the medium to be treated.

The medium may be any hydrocarbon fluid, preferably a liquid. For example, excellent results have been obtained from treatment of crude oil, petroleum residua and fuels such as kerosene. It should be recognized that while the fluids are referred to as hydrocarbon fluids, in some cases (for example, crude oil emulsions), hydrocarbons may make up less than half of the fluid by weight. The product is particularly useful for treatment of crude oil in that it does not add an additional malodorous compound as has been associated with the use of choline to treat crude oil. However, results superior to those achieved with the use of other compositions such as the internal ion of the noted European application have been found with respect to a variety of hydrocarbon media.

In addition, even significantly greater degrees of scavenging have been found to result if the medium is first oxygenated such as by aeration prior to addition of the mercaptan scavenger. Although the subject inventor does not wish to be bound by any particular theory, it is believed that the mechanism by which this scavenging occurs is according to the following reaction sequence wherein R¹ R² R³ R⁴ N⁺ OH⁻ is the scavenger and RSH is the mercaptan:

    R.sup.1 R.sup.2 R.sup.3 R.sup.4 N.sup.+ OH.sup.- +RSH→RS.sup.- +H.sub.2 O+R.sup.1 R.sup.2 R.sup.3 R.sup.4 N.sup.+ 2RS.sup.- +O.sub.2 →RSSR (disulfide)

Thus, increasingly improved results have been noted as the amount of oxygen added such as by aerating or bubbling air into the medium increases to 100% of the stoichiometry of this reaction scheme. Addition of air in an amount beyond 100% has not been found to improve scavenging much more than that associated with addition of 100% of stoichiometry.

Effective scavenging may be carried out at the ambient temperature of the hydrocarbon fluid (e.g., about 20° C. for stored crude oil, residuum or fuel), but the performance of the scavenger has been found to be improved at higher temperatures such as about 50° C. to about 75° C. The scavenger tends to decompose at even higher temperatures, such as at about 100° C. However, the decomposition at such temperatures occurs relatively slowly while the time for the reaction between the scavenger and the mercaptans is relatively short, generally requiring only several hours to reduce the mercaptan level substantially. Thus, the scavenger may still be employed at such elevated temperatures with good results.

The quaternary ammonium scavengers of this invention have been found to react selectively with the lower molecular weight mercaptans without imparting to the system an odor of its own. More particularly, for example, the scavengers have been found to scavenge methyl mercaptan in preference to ethyl mercaptan and to scavenge ethyl mercaptan in preference to n-propyl mercaptan and to scavenge n-propyl mercaptan in preference to n-butyl mercaptan, and so forth. It also has been observed that the scavengers react selectively with linear mercaptans over branched mercaptans. Thus, the scavengers enable removal of the most volatile mercaptans, which are the greatest contributors to odor problems, with limited waste of scavenger on side reactions with less volatile mercaptans.

The following examples describe preferred embodiments of the invention. Other embodiments within the scope of the claims herein will be apparent to one skilled in the art from consideration of the specification or practice of the invention as disclosed herein. It is intended that the specification, together with the examples, be considered exemplary only, with the scope and spirit of the invention being indicated by the claims which follow the examples. In the examples, all percentages are given on a weight basis unless otherwise indicated.

EXAMPLE 1

A tertiary amine (ADMA WC Amine, Ethyl Corp., 77 g, 0.35 mole), methanol (92.4 g) and water (12.6 g, 0.70 mole) were placed in a glass autoclave fitted with cooling coils, stirrer, thermowell and ethylene oxide delivery tube. The reactor was sealed and ethylene oxide (15.4 g, 0.35 mole) was added in one portion, with nitrogen used to aid the addition. Immediately after the addition of ethylene oxide, the reactor had a total pressure of 20 pounds per square inch and a pot temperature of 20° C. After one hour, a maximum temperature of 26° C. had been reached. The pressure fell off to 16 psi after 90 minutes.

The product was analyzed by titration and contained 1.22 meq/g of quaternary ammonium hydroxide and 0.57 meq/g of tertiary amine. The relative yields are shown in Example 8.

EXAMPLE 2

The same procedure as followed in Example 1, except that water was omitted, was used to prepare an internal salt compound as disclosed in the noted European application to Roof et al. Thus, 80.1 g (0.364 mole) of the amine in 96.1 g methanol were reacted with 16.0 g (0.364 mole) ethylene oxide. After 90 minutes, the product contained 1.23 meq/g quaternary ammonium hydroxide and 0.72 meq/g tertiary amine. The relative yields are shown in Example 8.

EXAMPLE 3

Various quaternary ammonium hydroxides were prepared from alkoxylated tertiary amines and added to samples of 50° C. crude oil containing 169.82 ppm 1-propane thiol (propyl mercaptan) and the resulting 1-propane thiol concentrations were measured. The results are reported in the following table, wherein each quaternary ammonium hydroxide is identified by the tertiary amine and the alkylene oxide ("ALKOXIDE", either ethylene oxide, referred to as EtO, or propylene oxide, referred to as PrO), the concentrations of the quaternary ammonium hydroxide ("QUAT CONTENT") and the unreacted amine ("UNREACTED AMINE CONTENT") in the samples are given in milli-equivalents per gram, and the 1-propane thiol concentration in the sample after treatment as measured according to ASTM D-3227 is given in ppm. In the table, "% REDUCTION" refers to the percentage of reduction of 1-propane thiol that was achieved.

    __________________________________________________________________________                             UNREACTED                                                                             1-PROPANE                                                         QUAT  AMINE  THIOL %                                         TERTIARY AMINE                                                                             ALKOXIDE                                                                             CONTENT                                                                              CONTENT                                                                               CONTENT                                                                              REDUCTION                                 __________________________________________________________________________     Blank                          169.82                                          Methyl-morpholine                                                                          EtO   2.04  0.06   127.71                                                                               25                                        Dimethylcoco                                                                               EtO   1.23  0.61   119.86                                                                               29                                        2-hydroxyethylmorpholine                                                                   EtO   0.54  2.34   126.49                                                                               26                                        Dimethyl-benzyl                                                                            EtO   0.812 1.624  88.26 48                                        Dimethylcoco                                                                               PrO   0.847 1.493  160.74                                                                                5                                        Methyl-morpholine                                                                          EtO   1.334 1.60   75.38 56                                        Dimethyl-ethanol                                                                           EtO   3.85  0.40   112.55                                                                               34                                        Dimethylcoco                                                                               EtO   1.26  1.17   110.19                                                                               35                                        __________________________________________________________________________

EXAMPLE 4

Mercaptan selectivity of 70% N-(2-hydroxyethyl)-N, N-dimethyl-N-coco ammonium hydroxide in an isopropanol and water solution was measured in 50° C. crude oil by GC analysis (using a sulfur specific detector) about two hours after addition of 1000 ppm of the hydroxide. A second sample of the scavenger was prepared and tested in the same manner. The following table shows the mercaptan content (in ppm) of the crude oil for each of various mercaptans (identified by type of thiol) before and after treatment and the corresponding percentage reduction of that mercaptan.

    __________________________________________________________________________                      FIRST SCAVENGER                                                                               SECOND SCAVENGER                                                CONTENT        CONTENT                                                   INITIAL                                                                              AFTER          AFTER  %                                       MERCAPTAN  CONTENT                                                                              TREATMENT                                                                             % REDUCTION                                                                            TREATMENT                                                                             REDUCTION                               __________________________________________________________________________     Methane thiol                                                                             91    21     77      52     43                                      Ethane thiol                                                                              85    32     62      58     32                                      2-Propane thiol                                                                           50    30     40      41     18                                      2-Methyl-2-propane thiol                                                                  7.3   5.4    26      6.7    8                                       1-Propane thiol                                                                           21    10     52      17     19                                      2-Butane thiol                                                                            45    32     29      41     9                                       __________________________________________________________________________

EXAMPLE 5

The efficacy of N-(2-hydroxyethyl)-N, N-dimethyl-N-coco ammonium hydroxide in reducing 1-propane thiol in 50° C. kerosene fuel was compared to corresponding salts with various counter ions and with the corresponding internal salt (i.e., no counter ion). The 1-propyl mercaptan (1-propane thiol) content was measured 1 hour after treatment according to ASTM D-3227. The following results were obtained, wherein thiol content is the 1-propane thiol content given in ppm and % REDUCTION refers to the percentage reduction in 1-propane thiol content achieved. These results show better than a 20% improvement in scavenging with N-(2-hydroxyethyl)-N, N-dimethyl-N-coco ammonium hydroxide versus scavenging with N-(2-hydroxyethyl)-N, N-dimethyl-N-coco ammonium internal salt (35% reduction of 1-propane thiol versus 29% reduction of 1-propane thiol).

    __________________________________________________________________________                                   THIOL CONTENT                                                                  AFTER                                            COMPOSITION                   TREATMENT                                                                               % REDUCTION                             __________________________________________________________________________     Blank                         260.7                                            N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium hydroxide                                                    169.7    35                                      N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium acetate                                                      229.6    12                                      N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium chloride                                                     259.7    0                                       N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium citrate                                                      230.6    12                                      N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium bisulfate                                                    259.9    0                                       N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium internal salt                                                184.3    29                                      counter ion)                                                                   __________________________________________________________________________

EXAMPLE 6

The effect of the presence of air was investigated by adding 3000 ppm N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium hydroxide solution to two samples of 50° C. oilfield condensate, one of which was sparged with air prior to addition of the additive. The concentrations of various mercaptans in the feed and after treatment were measured after eight hours of storage and are given in the following table in ppm, as is the corresponding percentage reduction ("% RED'N").

    __________________________________________________________________________                      CONTENT     CONTENT                                                            AFTER       AFTER                                                        CONTENT                                                                              TREATMENT                                                                             % RED'N                                                                             TREATMENT                                                                             % RED'N                                    MERCAPTAN  IN FEED                                                                              (NO AIR)                                                                              NO AIR                                                                              (WITH AIR)                                                                            WITH AIR                                   __________________________________________________________________________     Methane thiol                                                                             15    12     20   2      87                                         Ethanethiol                                                                               94    40     57   16     83                                         2-Propane thiol                                                                           120   72     40   56     53                                         2-Methyl-2-propane thiol                                                                  61    47     23   49     20                                         1-Propane thiol                                                                           48    25     48   13     73                                         2-Butane thiol                                                                            159   108    32   92     42                                         2-Methyl-1-propane thiol                                                                  30    18     40   13     57                                         1-Butane thiol                                                                            73    49     33   46     37                                         2-Methyl-3-butane thiol                                                                   21    17     19   17     19                                         2-Pentane thiol                                                                           58    39     33   37     36                                         3-Pentane thiol                                                                           24    17     29   17     29                                         __________________________________________________________________________

EXAMPLE 7

Solutions of N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium hydroxide were added to samples of crude oil in trials run at ambient temperatures, 50° C. and 75° C. The initial mercaptan concentration (0 min.) was measured, as was the mercaptan concentration five minutes, sixty minutes and 120 minutes after addition of the solution. The following table presents the results, giving the additive solution concentration and mercaptan concentrations ("RSH at min.") in ppm.

    ______________________________________                                                      AMBIENT                                                                        TEMPERATURE 50° C.                                                                            75° C.                               ______________________________________                                         Additive Concentration                                                                      1000    2000    1000 2000 1000 2000                               RSH at 0 min.                                                                               743     743     727  727  757  757                                RSH at 5 min.                                                                               701     640     661  645  714  549                                RSH at 60 min.                                                                              581     521     573  541  533  505                                RSH at 120 min.                                                                             518     517     458  434  420  354                                ______________________________________                                    

EXAMPLE 8

Dimethylcocoamine was reacted with ethylene oxide in two reactions carried out under identical conditions, except that one reaction was carried out under anhydrous conditions, while the other was carried out in the presence of water. The resulting yield of quaternary compound (the internal salt for that prepared under anhydrous conditions and the hydroxide for that prepared in the presence of water) was measured at various times during the reaction and is presented in the following table in terms of milligrams of KOH per gram. The internal salt prepared under anhydrous conditions is identified as "ANH" and the hydroxide prepared in the presence of water is identified as "WATER".

    ______________________________________                                         Yield at 30 minutes                                                                         Yield at 60 minutes                                                                          Yield at 90 minutes                                 ANH   WATER      ANH     WATER   ANH   WATER                                   ______________________________________                                         57.3  65.0       59.4    67.6    63.1  68.2                                    ______________________________________                                    

EXAMPLE 9

Various quaternary compounds were prepared in the presence of water and under anhydrous conditions by ethoxylating tertiary amines. The concentrations of the resulting quaternary compound and the unreacted amine were measured upon completion of the reaction and the % yield was calculated. The results were as follows, with the concentration of the quaternary compound ("QUAT CONTENT") and the concentration of the unreacted amine ("UNREACTED AMINE CONTENT") being given in milli-equivalents per gram.

    ______________________________________                                                                       UNREACTED                                                            QUAT.     AMINE    %                                       AMINE      WATER?   CONTENT   CONTENT  YIELD                                   ______________________________________                                         Dimethylcoco                                                                              Yes      1.21      0.56     68                                      Dimethylcoco                                                                              No       1.27      0.62     67                                      Dimethylbenzyl                                                                            Yes      1.64      0.58     74                                      Dimethylbenzyl                                                                            No       1.73      0.97     64                                      Methylmorpholine                                                                          Yes      1.33      1.6      45                                      Methylmorpholine                                                                          No       1.45      1.87     44                                      ______________________________________                                    

Samples of the resulting compositions containing quaternary compounds were then added to 50° C. kerosene containing ethane thiol. The additive composition was added to the kerosene at a concentration of 500 ppm of the composition and the ethane thiol concentration at one hour after addition of the composition was measured according to ASTM D-3227. The following results were obtained, with the ethane thiol content being given in ppm.

    ______________________________________                                                              ETHANE THIOL                                              AMINE       WATER?   CONTENT     % REDUCTION                                   ______________________________________                                         Blank                241                                                       Dimethylcoco                                                                               Yes      173         28.22                                         Dimethylcoco                                                                               No       177         26.56                                         Dimethylbenzyl                                                                             Yes      201         16.60                                         Dimethylbenzyl                                                                             No       209         13.28                                         Methylmorpholine                                                                           Yes      219         9.13                                          Methylmorpholine                                                                           No       205         14.94                                         ______________________________________                                    

This procedure was repeated with different amounts of additive compositions, the amounts selected to adjust for the different level of quaternary compound in each composition. Sufficient composition was added in each run to achieve a 500 ppm concentration of actives in each test. The results were as follows.

    ______________________________________                                                            ACTUAL   ETHANE                                                                DOSE     THIOL   %                                          AMINE     WATER?   (ppm)    CONTENT REDUCTION                                  ______________________________________                                         Blank                       241                                                Dimethylcoco                                                                             Yes      715      153     36.51                                      Dimethylcoco                                                                             No       681      156     35.27                                      Dimethylbenzyl                                                                           Yes      527      199     17.43                                      Dimethylbenzyl                                                                           No       500      205     14.94                                      Methyl-   Yes      650      214     11.20                                      morpholine                                                                     Methyl-   No       597      201     16.60                                      morpholine                                                                     ______________________________________                                    

EXAMPLE 10

Further experiments were carried out with N-(2-hydroxyethyl)-N,N-dimethyl-N-coco ammonium hydroxide to test the effect of oxygen. The hydroxide was added at a concentration of 2000 ppm to each of two crude oil samples. Prior to the addition, one of the samples was sparged with air to produce an oxygen level of 75% of the stoichiometric level based on 750 ppm total mercaptans. The initial concentrations of various mercaptans in the samples were measured and their concentrations were measured again 1.5 hours after addition of the hydroxide. The following results were obtained, with the concentrations given in ppm.

    __________________________________________________________________________                INITIAL                                                                              CONTENT 11/2                                                                           %      CONTENT 11/2                                                                           %                                      MERCAPTAN  CONTENT                                                                              HRS NO O.sub.2                                                                         REDUCTION                                                                             HRS WITH O.sub.2                                                                       REDUCTION                              __________________________________________________________________________     Methane thiol                                                                             97    69      28.87  15      84.54                                  Ethane thiol                                                                              75    56      25.33  22      70.67                                  2-Propane thiol                                                                           41    36      12.20  22      46.34                                  1-Propane thiol                                                                           17    14      17.66  6.7     60.59                                  2-Butane thiol                                                                            37    35      5.41   24      35.14                                  2-Methyl-1-propane thiol                                                                  3.8   3.9     0      2.1     44.74                                  2-Methyl-3-butane thiol                                                                   3.5   3.2     8.57   2.6     25.71                                  2-Pentane thiol                                                                           16    15      6.25   11      31.25                                  3-Pentane thiol                                                                           7.7   7.4     3.90   5.9     23.38                                  __________________________________________________________________________

Further tests were carried out on the influence of oxygen with addition of 2000 ppm N-(2-hydroxyethyl)-N, N-dimethyl-N-coco ammonium hydroxide in 50° C. crude oil containing 200 ppm 1-propane thiol. The test was conducted with four samples of the oil. No oxygen was added to one of the samples, oxygen at 50% of stoichiometry was added to a second sample, oxygen at 100% of stoichiometry was added to a third sample and oxygen at 200% of stoichiometry was added to the remaining sample. The percentage reduction in 1-propane thiol was determined for each sample seven hours after addition of the hydroxide with the following results.

    ______________________________________                                         ADDED OXYGEN (% OF                                                             STOICHIOMETRY)                                                                               % 1-PROPANE THIOL REDUCTION                                      ______________________________________                                         0             16                                                               50            28                                                               100           51                                                               200           57                                                               ______________________________________                                    

EXAMPLE 11

Samples were prepared in hexane containing approximately 25 ppm MeSH, 25 ppm EtSH and 50 ppm PrSH. Each of two samples were treated with an equimolar amount (about 300 pm) of quaternary compound, one with the quaternary ammonium hydroxide (Petrolite product) and the other with the internal salt, the compounds having been prepared in Examples 1 and 2, above. An untreated blank was also prepared. The samples were heated at 60-65° C. for one hour, analyzed by gas chromatography, allowed to stand at ambient temperature overnight, and analyzed again. The results are shown in the table below:

    ______________________________________                                                  MeSH      EtSH      PrSH    TOTAL                                              %         %         %       RSH                                       SAMPLE   DECREASE  DECREASE  DECREASE                                                                               DECREASE                                  ______________________________________                                         Internal Salt,                                                                          78.7      54.3      49.8    55.2                                      1 hr., heat                                                                    Quat OH, 71.4      51.5      48.1    52.4                                      1 hr., heat                                                                    Internal Salt,                                                                          76.5      51.1      44.5    50.5                                      20 hr.                                                                         Quat OH, 73.6      54.1      48.3    53.1                                      20 hr.                                                                         ______________________________________                                    

These results showed nominal differences within the margin of experimental error and so were inconclusive as to relative efficacy of the compositions.

It is believed that the lessening of some values overnight was due to inaccuracies in the method, as opposed to some sort of decomposition.

In view of the above, it will be seen that the several advantages of the invention are achieved and other advantageous results attained.

As various changes could be made in the above methods and compositions without departing from the scope of the invention, it is intended that all matter contained in the above description shall be interpreted as illustrative and not in a limiting sense. 

What is claimed is:
 1. A method for preparation of a quaternary ammonium hydroxide, comprising reacting in the presence of watera tertiary amine of the formula R¹ R² R³ N, wherein R¹ and R² are independently selected from the group consisting of alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms, and R³ is selected from the group consisting of alkyl groups of from two to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms, provided, however, that R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom, with at least one alkylene oxide of from two to three carbon atoms, to produce a quaternary ammonium hydroxide of the formula R¹ R² R³ R⁴ NOH, wherein R¹, R² and R³ are as defined above and R⁴ is selected from the group consisting of ##STR6## wherein m and p are independently selected from integers from zero to about eighteen, provided that the sum m+p is from one to about eighteen, and --CHR⁵ CHR⁶ OH, wherein R⁵ and R⁶ are independently selected from the group consisting of hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms, and alkylaryl groups of from seven to about eighteen carbon atoms.
 2. A method as set forth in claim 1 wherein the alkylene oxide is ethylene oxide, m is zero and p is one.
 3. A method as set forth in claim 2 wherein R² and R³ are not joined.
 4. A method as set forth in claim 1 wherein R¹ is methyl.
 5. A method as set forth in claim 3 wherein R¹ and R² are each methyl.
 6. A method as set forth in claim 5 wherein R³ is coco.
 7. A method as set forth in claim 1 wherein m is zero and p is an integer from one to about eighteen.
 8. A method as set forth in claim 7 wherein R⁴ corresponds to the formula --CHR⁵ CHR⁶ OH, wherein R⁵ and R⁶ are independently selected from the group consisting of hydrogen and alkyl groups of up to about six carbon atoms.
 9. A method as set forth in claim 8 wherein R⁴ corresponds to the formula --CH₂ CH₂ OH.
 10. A method as set forth in claim 8 wherein R⁵ is hydrogen and R⁶ is methyl.
 11. A method as set forth in claim 1 wherein R¹ and R² are, independently, alkyl groups of up to about eighteen carbon atoms.
 12. A method as set forth in claim 7 wherein R¹ and R² are, independently, alkyl groups of up to about six carbon atoms.
 13. A method as set forth in claim 8 wherein R¹ and R² are, independently, alkyl groups of up to about three carbon atoms.
 14. A method as set forth in claim 13 wherein R³ is a fatty group of from about eight to about eighteen carbon atoms.
 15. A method as set forth in claim 1 wherein the tertiary amine and the alkylene oxide are reacted by mixing them together in the presence of water and in an amine to alkylene oxide molar ratio of from about 1:1 to about 1:1.5.
 16. A method for preparation of a quaternary ammonium hydroxide, comprising reacting in the presence of watera tertiary amine of the formula R¹ R² R³ N, wherein R¹ and R² are independently selected from the group consisting of alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms, and R³ is selected from the group consisting of alkyl groups of from two to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms, provided, however, that R² and R³ may be joined to form a heterocyclic ring including the N and optionally an oxygen atom, with a reactant selected from the group consisting of alkylene oxides, alkylene sulfides and alkyleneimines, to produce a quaternary ammonium hydroxide of the formula R¹ R² R³ R4NOH, wherein R¹, R² and R³ are as defined above and R⁴ corresponds to the formula --CHR⁵ CHR⁶ Y, wherein R⁵ and R⁶ are independently selected from the group consisting of hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms, and Y is a non-acidic group selected from the group consisting of --OH, --SR⁷ and --NR⁷ R⁸, wherein R⁷ and R⁸ are independently selected from the group consisting of hydrogen, alkyl groups of from one to about eighteen carbon atoms, aryl groups of from six to about eighteen carbon atoms and alkylaryl groups of from seven to about eighteen carbon atoms.
 17. A method as set forth in claim 16 wherein the reactant is an alkylene sulfide and Y corresponds to the formula --SR⁷.
 18. A method as set forth in claim 16 wherein the reactant is an alkyleneimine and Y corresponds to the formula --NR⁷ R⁸. 